home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Techniques / Background Apps / About This_Docs
Text File  |  1998-07-22  |  3KB  |  34 lines

  1. Welcome to Andy Ruff's Background Apps Examples
  2.  
  3. Introduction
  4. ------------
  5. Background applications are key to developing any kind of project that will continously run on your computer without any user interaction.  Background apps launch and then hide themselves from the user.
  6.  
  7. How to create a background app
  8. ------------------------------
  9. 1.  Create your entire project, since there is no user interaction, everything has to be centered off of an Application classes's open event.  All methods must be called from here.  Keep in mind that no menus, windows, etc.. will be seen by the user
  10.  
  11. 2.  So what about the fact that when you edit/use controls the window they reside in opens?  Well, all you have to do is check the windows visible property to false.  The window's controls will run still, but the window will never be seen and won't interfere with the system.  IMPORTANT : You must do this or the system will crash, it will run maybe for about 15 secs and you won't be able to change windows in the Finder, then BOOM! you're giving the infamous three fingered salute.
  12.  
  13. 3.  Build your application. (simple, eh?)
  14.  
  15. 4.  Use a resource editor such as ResEdit or Resourcer to open your application.  Open the SIZE resource, there should only be one of them in the app.  Find where it says "Only Background" and mark that TRUE or 1.
  16.  
  17. 5.  Launch the app, it should run in the background.  You'll need to edit the QuitTest script included in this bundle to be able to quit it.
  18.  
  19. How to create a background app with a global floating window
  20. ------------------------------------------------------------
  21. 1.  Global floating windows are sweet!  Great feature and the fact that REALbasic supports them makes its $99 value worth it.  Keep in mind that if you create a global floating window, any other window in the project must have its visibility to false so the user won't see them (Read #2 of the first section for more info).  Keep in mind that no menus, windows, etc.. will be seen by the user except your global floating window.
  22.  
  23. 2.  Build your application.  (Careful, this is harder than turning the Mac on)
  24.  
  25. 3.  Use a resource editor such as ResEdit or Resourcer to open your application.  Open the SIZE resource, there should only be one of them in the app.  Find where it says "Only Background" and mark that TRUE or 1.
  26.  
  27. 5.  Launch the app, it should run in the background.  You'll need to edit the QuitTest script included in this bundle to be able to quit it.
  28.  
  29. Conclusion
  30. ----------
  31. Have fun with these, if you find any problems or make enhancements, contact me at ruffguy@cfu-cybernet.net
  32.  
  33. BTW, keep a watch out for my new website coming soon, The MacinMosh Network, a very handy news resource for Mac users that I'm using REALbasic to database, compile, publish and manage the site! (http://www.macinmosh.com -- may not be there yet!)
  34.